<template>
  <div id="app">
    <!-- 组件缓存记录当前位置 -->
    <keep-alive include="HomePage">
      <RouterView class="body" />
    </keep-alive>
    <RouterView class="footer" name="tabbar" />
    <!-- 测试vant -->
    <!-- <van-button type="primary">按钮</van-button> -->
    <!-- 适配测试 -->
    <!-- <div class="box"></div> -->
    <!-- 命名视图 -->
    <!-- <router-view name="default"></router-view> -->
  </div>
</template>

<style lang="less" scoped>
// .box {
//   width: 120px;
//   height: 120px;
//   background: pink;
// }
#app {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .body {
    flex: 1;
    overflow: hidden;
  }
  .footer {
    height: 50px;
  }
}
</style>
